<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生信息</title>
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="/webjars/bootstrap/3.3.5/css/bootstrap.min.css" />
    <script src="/webjars/jquery/3.1.1/jquery.min.js"></script>
    <script src="/webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>

<form action="/updateStudentBySno" class="form-horizontal"  method="post" th:each="student:${student}" >
    <h2 align="center">该学生信息</h2>
    <div class="form-group">
        <label for="sno" class="control-label col-md-2 col-md-offset-3">
    学号：
    </label>
        <div class="col-md-2">
    <input type="text" class="form-control" id="sno" name="sno" th:value="${student.getSno()}" readonly="readonly"><br><br>
        </div>
    </div>

    <div class="form-group">
        <label for="sname" class="control-label col-md-2 col-md-offset-3">
    姓名：
        </label>
        <div class="col-md-2">
        <input type="text" name="sname" class="form-control" id="sname" th:value="${student.getSname()}"><br><br>
    </div>
    </div>

    <div class="form-group">
    <label  class="control-label col-md-2 col-md-offset-3">
        性别：</label>
        <div class="col-md-2">
            <input type="text"  class="form-control" name="ssex" th:if="${student.getSsex()}" value="男" >
            <input type="text"  class="form-control" name="ssex"  th:unless="${student.getSsex()}" value="女">
            <br/><br/>
        </div>
    </div>

    <div class="form-group">
        <label for="sage" class="control-label col-md-2 col-md-offset-3">
            年龄：</label>
        <div class="col-md-2">
        <input type="text" id="sage" class="form-control" name="sage" th:value="${student.getSage()}"><br><br>
    </div>
    </div>

    <div class="form-group">
        <label for="sdept" class="control-label col-md-2 col-md-offset-3">
            专业：</label>
    <div class="col-md-2">
        <input type="text" id="sdept" class="form-control" name="sdept" th:value="${student.getSdept()}"><br><br>
    </div>
    </div>
    <div class="form-group">

    <div class="col-md-8 col-md-offset-7">
    <input type="submit" class="btn btn-info" value="修改" />
    </div>
    </div>
</form>

</body>
</html>